import service from '../utils/request'

export function user_login( payload = {} ){
    return service.post('/api/user/login', payload );
}
export function user_register( payload = {} ){
    return service.post('/api/user/register', payload );
}
export function role_list( payload = {} ){
    return service.get('/api/role/list', { params: payload } );
}
export function goout_list( payload = {} ){
    return service.get('/api/business/list', { params: payload } );
}
export function goout_add( payload = {} ){
    return service.post('/api/business/add', payload );
}
export function goout_delete( payload = {} ){
    return service.post('/api/business/delete', payload );
}
export function outside_list( payload = {} ){
    return service.get('/api/outside/list', { params: payload } );
}
export function outside_add( payload = {} ){
    return service.post('/api/outside/add', payload );
}
export function outside_delete( payload = {} ){
    return service.post('/api/outside/delete', payload );
}
export function leave_list( payload = {} ){
    return service.get('/api/leave/list', { params: payload } );
}
export function leave_add( payload = {} ){
    return service.post('/api/leave/add', payload );
}
export function leave_delete( payload = {} ){
    return service.post('/api/leave/delete', payload );
}
export function work_list( payload = {} ){
    return service.get('/api/work/list', { params: payload } );
}
export function work_add( payload = {} ){
    return service.post('/api/work/add', payload );
}
export function work_delete( payload = {} ){
    return service.post('/api/work/delete', payload );
}

